using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Comteck.Dto.Sys {
  /// <summary>
  /// 
  /// </summary>
  public class PrintTemplateDto : NotifyViewModel {
    /// <summary>
    /// 菜单编码
    /// </summary>
    public virtual string Id { get => _Id; set => SetProperty(ref _Id, value); }
    private string _Id;

    /// <summary>
    /// 模板名称
    /// </summary>
    [Display(Name = "模板名称")]
    [Required(ErrorMessage = "{0} 不能为空")]
    [MaxLength(length: 50, ErrorMessage = "{0} 最大长度为 {1}.")]
    public virtual string Name { get => _Name; set => SetProperty(ref _Name, value); }
    private string _Name;

    /// <summary>
    /// 状态
    /// </summary>
    public virtual int Status { get => _Status; set => SetProperty(ref _Status, value); }
    private int _Status;

    /// <summary>
    /// 菜单id
    /// </summary>
    [Display(Name = "菜单")]
    [Required(ErrorMessage = "{0} 不能为空")]
    [MaxLength(length: 50, ErrorMessage = "{0} 最大长度为 {1}.")]
    public virtual string MenuId { get => _MenuId; set => SetProperty(ref _MenuId, value); }
    private string _MenuId;

    /// <summary>
    /// 模板文件
    /// </summary>
    public virtual string Data { get => _Data; set => SetProperty(ref _Data, value); }
    private string _Data;

    /// <summary>
    /// 系统内置
    /// </summary>
    public virtual int IsSystem { get => _IsSystem; set => SetProperty(ref _IsSystem, value); }
    private int _IsSystem;

    /// <summary>
    /// 排序
    /// </summary>
    public virtual int SeqNo { get => _SeqNo; set => SetProperty(ref _SeqNo, value); }
    private int _SeqNo;

    /// <summary>
    /// 备注
    /// </summary>
    public virtual string Description { get => _Description; set => SetProperty(ref _Description, value); }
    private string _Description;

    /// <summary>
    /// 关联脚本列表
    /// </summary>
    public virtual List<PrintTemplateDataDto> DataList { get; set; }
  }
}
